# set OTP variable according to your environment

OTP=$(HOME)/R11B

UNAME = $(shell uname)


ifeq ($(UNAME), Darwin)
  COMPILER=gcc
  CC=$(COMPILER)
  CFLAGS=-g -Wall -O
else
endif

OUTDIR=../bin
OBJS=erlymate.o

all: ${OBJS}
	$(CC) $(CFLAGS) -o $(OUTDIR)/erlymate ${OBJS} 
	rm -f *.o

clean:
	rm -f ../bin/erlymate